package com.shiwaixiangcun.customer.module.houserenting

import com.google.gson.annotations.SerializedName


/**
 * Author   Administrator
 * Date     2018/1/16
 * Desc     eg
 */


data class HouseList(
        @SerializedName("elements") val elements: List<HouseData>,
        @SerializedName("page") val page: Int, //1
        @SerializedName("size") val size: Int, //15
        @SerializedName("totalAmount") val totalAmount: Int, //5
        @SerializedName("totalPages") val totalPages: Int //1
)

data class HouseData(
        @SerializedName("buildingArea") val buildingArea: String, //89.00
        @SerializedName("floor") val floor: String, //6楼
        @SerializedName("id") val id: Long, //13
        @SerializedName("image") val image: Image,
        @SerializedName("name") val name: String, //高新区 桐梓林欧城 位置安静 精装带家电
        @SerializedName("price") val price: String, //245.0万
        @SerializedName("structureName") val structureName: String, //两室两厅一卫
        @SerializedName("typeValue") val typeValue: String, //saleHouse
        @SerializedName("unitPrice") val unitPrice: String
)

data class Image(
        @SerializedName("accessUrl") val accessUrl: String, //http://resource.shiwaixiangcun.cn/group1/M00/01/99/rBKx51pVbdSAbvXYAAGO0SE4yFc297.jpg
        @SerializedName("fileId") val fileId: Long, //26874
        @SerializedName("thumbImageURL") val thumbImageURL: String //http://resource.shiwaixiangcun.cn/group1/M00/01/99/rBKx51pVbdSAbvXYAAGO0SE4yFc297.jpg
)


/**
 * 房屋详情
 */
data class HouseDetailEntity(
        @SerializedName("agentName") val agentName: String, //何林
        @SerializedName("agentPhone") val agentPhone: String, //18381301234
        @SerializedName("buildingArea") val buildingArea: Double, //121
        @SerializedName("configs") val configs: String, //床、衣柜、沙发、空调、冰箱、电视、热水器、洗衣机、阳台、卫生间、暖气、可做饭、宽带
        @SerializedName("description") val description: String, //null
        @SerializedName("id") val id: Int, //6
        @SerializedName("images") val images: List<Image>,
        @SerializedName("name") val name: String, //121212
        @SerializedName("payName") val payName: String, //押一付三
        @SerializedName("price") val price: String, //1212.00
        @SerializedName("structureDetail") val structureDetail: String, //两室一厅一卫/13楼/121.0㎡/押一付三
        @SerializedName("structureName") val structureName: String, //两室一厅一卫
        @SerializedName("top") val top: Boolean, //true
        @SerializedName("typeValue") val typeValue: String, //rentHouse
        @SerializedName("houseDescriptions") val houseDescriptions: List<HouseDescription> //null

)

data class HouseDescription(
        @SerializedName("key") val key: String, //rentHouse
        @SerializedName("value") val value: String


)


data class AttrEntity(var name: String, var icon: Int)
